package com.skyworth.skymanualview;
import android.view.animation.ScaleAnimation;
public class SkyScaleAnimation
{
    private ScaleAnimation animation_scale;
    public SkyScaleAnimation(float fromX, float toX, float fromY, float toY, int pivotXType,
            float pivotXValue, int pivotYType, float pivotYValue, int duration)
    {
        animation_scale = new ScaleAnimation(fromX, toX, fromY, toY, pivotXType, pivotXValue,
                pivotYType, pivotYValue);
        animation_scale.setDuration(duration);
        animation_scale.setFillAfter(true);
    }

    public SkyScaleAnimation(float fromX, float toX, float fromY, float toY, int duration)
    {
        animation_scale = new ScaleAnimation(fromX, toX, fromY, toY);
        animation_scale.setDuration(duration);
        animation_scale.setFillAfter(true);
    }

    public SkyScaleAnimation(float fromX, float toX, float fromY, float toY, float pivotXValue,
            float pivotYValue, int duration)
    {
        animation_scale = new ScaleAnimation(fromX, toX, fromY, toY, pivotXValue, pivotYValue);
        animation_scale.setDuration(duration);
        animation_scale.setFillAfter(true);
    }

    public ScaleAnimation getAnimation()
    {
        return animation_scale;
    }
}
